﻿using System.Runtime.Serialization;
using System;
namespace WSIMServices.model
{
    [DataContract]
    public class RegisterInfo
    {


        public bool Validate()
        {
            //logica di validazione campi
            return true;
        }

        private string userName;

        [DataMember]
        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }
        private string password;

        [DataMember]
        public string Password
        {
            get { return password; }
            set { password = value; }
        }
        private string email;

        [DataMember]
        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        private string nick;
        [DataMember]
        public string Nick
        {
            get { return nick; }
            set { nick = value; }
        }
        private bool privacy;
        [DataMember]
        public bool Privacy
        {
            get { return privacy; }
            set { privacy = value; }
        }
        private string name;
        [DataMember]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private string surname;
        [DataMember]
        public string Surname
        {
            get { return surname; }
            set { surname = value; }
        }
        private DateTime birthDate;
        [DataMember]
        public DateTime BirthDate
        {
            get { return birthDate; }
            set { birthDate = value; }
        }
        private string country;
        [DataMember]
        public string Country
        {
            get { return country; }
            set { country = value; }
        }
        private string town;
        [DataMember]
        public string Town
        {
            get { return town; }
            set { town = value; }
        }
        private string province;
        [DataMember]
        public string Province
        {
            get { return province; }
            set { province = value; }
        }
    }
}